<#-- 导入模版定义文件-->
<#include "../template/template_editPage.ftl">
<@edit title="省域管理">
<body class="input">
	<script type="text/javascript">
		$().ready(function () {
        var $validateErrorContainer = $("#validateErrorContainer");
        var $validateErrorLabelContainer = $("#validateErrorContainer ul");
        var $validateForm = $("#inputForm");
        var $tab = $("#tab");

        // Tab效果
        $tab.tabs(".tabContent", {
            tabs:"input"
        });
		// 表单验证
        $validateForm.validate({
            errorContainer:$validateErrorContainer,
            errorLabelContainer:$validateErrorLabelContainer,
            wrapper:"li",
            errorClass:"validateError",
            ignoreTitle:true,
            rules:{
                "provinceInfo.provinceName":{
                    required:true
                },
                "provinceInfo.provinceCode":{
                    required:true
                }
            },
            messages:{
                "provinceInfo.provinceName":{
                    required:"省域名称不能为空！"
                },
                "provinceInfo.provinceCode":{
                    required:"省域编码不能为空！"
                }
            },
			submitHandler:function (form) {
	                form.submit();
	            }
	        });
			 <#if actionErrors?? && (actionErrors?size > 0)>
	            $.dialog({type:"warn", content:"<#list errorMessages as list>${list}<br></#list>",
	                modal:true, autoCloseTime:3000});
	        </#if>
	
	        $("#submitId").click(function () {
	            var validatorPrice = check2();
	            return  validatorPrice;
	        });
	    });
	</script>

	<div class="body">
		<div class="inputBar">
        <h1><span class="icon">&nbsp;</span>省域编辑</h1>
	    </div>
	    <div style="display: none;" id="validateErrorContainer" class="validateErrorContainer">
	        <div class="validateErrorTitle">以下信息填写有误,请重新填写</div>
	        <ul></ul>
	    </div>
		<form id="inputForm" class="validate" action="${web_base}/game/province!edit.htm" method="post">
			&nbsp; &nbsp; 省域新增按照祥钻文档上的省域编码表进行输入新增！
			<br>
			 <input type="hidden" name="provinceInfo.id" value="${provinceInfo.id!}"/>
			<table class="inputTable tabContent">
				<tr>
                    <th>
                      	 省域名称:
                    </th>
                    <td>
                        <input type="text" name="provinceInfo.provinceName" class="formText {required: true}" 
                        	value="${(provinceInfo.provinceName)!}"/>
                        <label class="requireField">*</label> &nbsp;&nbsp; 例如：浙江（山东、河南、北京等）
                    </td>
                </tr>
				<tr>
                    <th>
                      	 省域编码:
                    </th>
                    <td>
                        <input type="text" name="provinceInfo.provinceCode" class="formText {required: true}" 
                        	value="${(provinceInfo.provinceCode)!}"/>
                        <label class="requireField">*</label> 
                    </td>
                </tr>
                <tr>
                    <th>
                      	 说明:
                    </th>
                    <td>
                        <input type="text" name="provinceInfo.remark" class="formText {required: false}" 
                        	value="${(provinceInfo.remark)!}"/>
                    </td>
                </tr>
			</table>
			<div class="buttonArea">
            <input type="submit" id="submitId" class="formButton"  value="编  辑"  hidefocus="true"/>&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回"
                   hidefocus="true"/>
        	</div>
		</form>
	</div>
</body>
</@edit>



